package com.cloudlead.plugin.dict.query;

import static com.mysema.query.types.PathMetadataFactory.*;

import com.cloudlead.plugin.dict.entity.EDict;
import com.cloudlead.plugin.dict.entity.EDictGroup;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QDictGroup is a Querydsl query type for EDictGroup
 */
@Label("字典组查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QDictGroup extends RelationalPathBase<EDictGroup> {

    private static final long serialVersionUID = 1031949566;

    public static final QDictGroup dictGroup = new QDictGroup("dict_group");

    public class PrimaryKeys {

        public final PrimaryKey<EDictGroup> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<EDict> _dictDictGroupFk = createInvForeignKey(id, "group_id");

    }

    public final StringPath description = createString("description");

    public final StringPath id = createString("id");

    public final StringPath name = createString("name");

    public final StringPath pid = createString("pid");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QDictGroup(String variable) {
        super(EDictGroup.class, forVariable(variable), "null", "dict_group");
        addMetadata();
    }

    public QDictGroup(String variable, String schema, String table) {
        super(EDictGroup.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QDictGroup(Path<? extends EDictGroup> path) {
        super(path.getType(), path.getMetadata(), "null", "dict_group");
        addMetadata();
    }

    public QDictGroup(PathMetadata<?> metadata) {
        super(EDictGroup.class, metadata, "null", "dict_group");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(description, ColumnMetadata.named("description").withIndex(3).ofType(Types.VARCHAR).withSize(255));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(255).notNull());
        addMetadata(pid, ColumnMetadata.named("pid").withIndex(4).ofType(Types.CHAR).withSize(24));
    }

}

